package nuc.soft.A01.jzs.controller;

import java.math.BigDecimal;

import nuc.soft.A01.jzs.model.general.GeneralObject;
import nuc.soft.A01.jzs.services.GeneralObjectService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class GeneralObjectController {

	@Autowired
	private GeneralObjectService generalobjectservice;
	
	@RequestMapping("/showadminlogin")
	public String showadminlogin()
	{
		/*System.out.println("showadminlogin");*/
		
		return "admin/login";
	}
	
	@RequestMapping("/showuserlogin")
	public String showuserlogin()
	{
		return "user/login";
	}
	
	@RequestMapping("/adminaddgood")
	public String adminAddGood()
	{
		return "admin/addgoods";
	}
	
	@RequestMapping("/userregistershow")
	public String showUserRegister()
	{
		return "user/register";
	}
	
	@RequestMapping("/userloginshow")
	public String showUserLogin()
	{
		return "user/login";
	}
	@RequestMapping("/showindex")
	public String showIndex()
	{
		return "index";
	}
	
	@RequestMapping("showteacherlogin")
	public String showteacherlogin()
	{
		return "user/teacher/generaluser/login";
	}
	
	@RequestMapping("showteacherregister")
	public String showteacherregister()
	{
		return "user/teacher/generaluser/register";
	}
	@RequestMapping("/showstudentlogin")
	public String showstudentlogin()
	{
		return "user/student/generaluser/login";
	}
	@RequestMapping("/showstudentregister")
	public String showstudentregister()
	{
		return "user/student/generaluser/register";
	}
	
	@RequestMapping("/showchooseloginway")
	public String showChooseLoginWay()
	{
		return "index";
	}
}
